<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>在浏览器中保存内容——localStorage</title>
</head>
<body>
<script !src="">
    let number = 1
    // 将内容保存
    // localStorage.setItem("number", number)


    // 读取保存的内容
    let item = localStorage.getItem("number");
    console.log(item);

</script>
</body>
</html>